<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
exit();
$_DBSite = "Master";
$_SERVER["DOCUMENT_ROOT"] = "/home/share/www/luckyball.cc/secure";
include_once($_SERVER["DOCUMENT_ROOT"]."/modules/mysql_wrappers.lib.php");
global $_Conn;
switch($_DBSite){
	case "Result":	//結帳資料庫
		$_BetDBHost = "192.168.5.120";
		$_Conn = "_ConnResult";
		global $_ConnResult;
		break;
	
	case "History":
	case "Query":	//查詢資料庫
		$_BetDBHost = "192.168.5.120";
		$_Conn = "_ConnQuery";
		global $_ConnQuery;
		break;

	case "Master":	 //主資料庫
	default:	 //預設
		$_BetDBHost = "192.168.5.120";
		$_Conn = "_ConnMaster";
		global $_ConnMaster;
		break;
}

$_BetDBUser = "kacino";
$_BetDBPass = "cyriac_0426";
$_BetDBName = "betLottoSample";
$_BetWeb = "sample.luckyball.us";

if (! $$_Conn = @mysql_connect($_BetDBHost, $_BetDBUser, $_BetDBPass)) {
	?>
	系統維護中，請稍候再登入！不便之處，敬請見諒！！
	<!--系統維護中, 請<a href="javascript:location.reload();">重新整理</a><P>//-->
	<?php
	exit();
}

if (! @PMA_mysql_select_db($_BetDBName, $$_Conn)) {
	?>
	系統維護中，請稍候再登入！不便之處，敬請見諒！
	<!--系統忙碌中, 請稍候片刻, 或立即<a href="javascript:location.reload();">重新整理</a>.//-->
	<?php 
	exit();
}


include_once("AddGambleTypeLimitForUser.php");
?>OK